﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddEditBrand.ascx.cs"
    Inherits="Admin_Hurman_Controls_AddEditBrand" %>
<h2>
    Thông Tin Chi Nhánh</h2>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="valid-erorr" />
<asp:CustomValidator ID="validBranh" runat="server" ErrorMessage="CustomValidator"
    Display="None" OnServerValidate="validBranh_ServerValidate"></asp:CustomValidator>
<table width="100%">
    <tr>
        <td width="150px">
            <b>Mã chi nhánh</b>
        </td>
        <td>
            <asp:TextBox ID="txtBranhCode" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBranhCode"
                Display="Dynamic" ErrorMessage="Nhập mã chi nhánh">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <b>Tên chi nhánh</b>
        </td>
        <td>
            <asp:TextBox ID="txtBranhName" runat="server" Width="450px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBranhName"
                Display="Dynamic" ErrorMessage="Nhập tên chi nhánh">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <b>Địa chỉ</b>
        </td>
        <td>
            <asp:TextBox ID="txtAddress" runat="server" Width="450px" TextMode="MultiLine"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <b>Điện thoại</b>
        </td>
        <td>
            <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <b>Thông tin</b>
        </td>
        <td>
            <asp:TextBox ID="txtDescription" runat="server" Width="450px" Height="150px" TextMode="MultiLine"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <b></b> 
        </td>
        <td>
            <span class="button">
                <asp:Button ID="btnAdd" runat="server" Text="Thêm" OnClick="btnAdd_Click" 
                Height="26px" />
                <span>
                </span>
            </span>
            <span class="button">
                <asp:Button ID="btnEdit" runat="server" Text="Cập nhật" Visible="false" OnClick="btnEdit_Click" />
                <span>
                </span>
            </span>
            <span class="button">
                <asp:Button ID="btnCancel" runat="server" Text="Quay ra" ValidationGroup="cancel"
                    OnClick="btnCancel_Click" />
                <span>
                </span>
            </span>
        </td>
    </tr>
</table>
